<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>商家注册表</title>
  <style></style>
</head>
<body>
  <div action="" method="post">
    <h1>欢迎注册</h1>
    <table>
      <tr>
        <td>商铺名称</td>
        <td>
          <input type="text" value="">
        </td>
      </tr>
      <tr>
        <td>商品类别</td>
        <td>
          <input type="text" value="">
        </td>
      </tr>
      <tr>
        <td>姓名</td>
        <td>
          <input type="text" value="">
        </td>
      </tr>
      <tr>
        <td>身份证</td>
        <td>
          <input type="text" value="">
        </td>
      </tr>
      <tr>
        <td>密码</td>
        <td>
          <input type="password" value="">
        </td>
      </tr>
      <tr>
        <td>确认密码</td>
        <td>
          <input type="password" value="">
        </td>
      </tr>
      <tr>
        <td>手机号码</td>
        <td>
          <input type="text" value="">
        </td>
      </tr>
      <tr>
        <td>验证码</td>
        <td>
          <input type="text" value="">
        </td>
        <td>
          <img src="" alt="" width="30">
        </td>
      </tr>
      <tr>
        <td colspan="3" style="text-align: center;">
          <input type="checkbox" id="yes">
          <label for="yes">我已阅读并同意</label>
          <a href="">《商铺用户注册协议》</a>
      </tr>
      <tr>
        <td colspan="3" style="text-align:center;">
          <input type="submit" value="立即注册">
        </td>
      </tr>
    </table>
  </div>
  <script>
    function ajax(){
      //创建xhr对象，调用ajax
      var xhr = new XMLHttpRequest();
      //监听并返回值
      xhr.onreadystatechange=function(){
        if(xhr.readyState==4){
          if(xhr.status>=200 && xhr.status<300){
            var result = xhr.responseText;
              console.log(result)
          }
        }
      }
      //设置请求信息 方法 地址，同步异步
    xhr.open('get','/business',false)
    //发送请求
    xhr.send()
    }
    //调用ajax
    ajax()
    //document.write(result);
  </script>
</body>
</html>